Package edu.claflin.finder.algo
Enum Algorithm.GraphSortOrder
- java.lang.Object
-
- java.lang.Enum<Algorithm.GraphSortOrder>
-
- edu.claflin.finder.algo.Algorithm.GraphSortOrder
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Algorithm.GraphSortOrder>
- Enclosing class:
- Algorithm
public static enum Algorithm.GraphSortOrder extends java.lang.Enum<Algorithm.GraphSortOrder>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCENDINGAVERAGE_WEIGHTDESCENDINGNONE
-
Constructor Summary
Constructors Modifier Constructor Description privateGraphSortOrder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Algorithm.GraphSortOrdervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Algorithm.GraphSortOrder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Algorithm.GraphSortOrder NONE
-
ASCENDING
public static final Algorithm.GraphSortOrder ASCENDING
-
DESCENDING
public static final Algorithm.GraphSortOrder DESCENDING
-
AVERAGE_WEIGHT
public static final Algorithm.GraphSortOrder AVERAGE_WEIGHT
-
-
Method Detail
-
values
public static Algorithm.GraphSortOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Algorithm.GraphSortOrder c : Algorithm.GraphSortOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Algorithm.GraphSortOrder valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-